package com.xtoneict.auth.service.impl;

import com.xtoneict.auth.entity.Department;
import com.xtoneict.auth.mapper.DepartmentMapper;
import com.xtoneict.auth.service.IDepartmentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hx
 * @since 2024-06-18
 */
@Service
public class DepartmentServiceImpl extends ServiceImpl<DepartmentMapper, Department> implements IDepartmentService {

    @Autowired
    private DepartmentMapper departmentMapper;
    @Override
    public int getIdByName(String departmentName) {
        int depId = departmentMapper.selectIdByName(departmentName);
        return depId;
    }
}
